<!DOCTYPE html>
<html>
<head>
    <title>almond: moduleConfig Test</title>
    <script type="text/javascript" src="../doh/runner.js"></script>
    <script type="text/javascript" src="../doh/_browserRunner.js"></script>
    <script type="text/javascript" src="moduleConfig-built.js"></script>
    <script type="text/javascript">
	var master = new doh.Deferred();

        requirejs.config({
            config: {
                'foo': {
                    locale: 'en-us'
                },
                'bar': {
                    color: 'blue'
                }
            }
        });

        require(['foo', 'bar', 'baz'], function(foo, bar, baz) {
            doh.register('moduleConfig',
                [{
                    name: 'moduleConfig',
                    timeout: 2000,
                    runTest: function() {
                        doh.is('en-us', foo.locale);
                        doh.is('blue', bar.color);
                        doh.is(undefined, baz.doesNotExist);
                    }
                }]
            );
            doh.run();

        });
    </script>
</head>
<body>
    <h1>almond: moduleConfig Test</h1>
    <p>Check console for messages</p>
</body>
</html>
